FROM lpicanco/java11-alpine:latest

MAINTAINER ChenYu <thischenyu@gmail.com>
VOLUME /tmp

ARG JAR_FILE

ADD target/${JAR_FILE} labbit.jar
# 设置暴露的端口号
EXPOSE 8081
# 执行命令
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=test","/labbit.jar"]